<%@page import="java.util.*"%>
<%@ page import="ma.co.ba.BusinessApplications.model.Utilisateur"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ page isELIgnored="false"%>


<div class="container">
	<div class="row">
		<div id="content" class="col-lg-12">
			<!-- PAGE HEADER-->
			<div class="row">
				<div class="col-sm-12">
					<div class="page-header">
						<!-- STYLER -->
						<!-- /STYLER -->
						<!-- BREADCRUMBS -->
						<ul class="breadcrumb">
							<li><i class="fa fa-home"></i> <a href="<c:url value="/" />">Home</a>
							</li>
							<li><i class="fa fa-users"></i> <a
								href="<c:url value="/utilisateurs" />">Utilisateurs</a></li>

							<li>Editer</li>
						</ul>
						<!-- /BREADCRUMBS -->
					</div>
				</div>
			</div>
			<!-- /PAGE HEADER -->


			<div class="row">
				<div class="col-md-12">
					<!--  CONTENU DE LA PAGE -->





					<!-- TITLE BOX START -->



					<div class="box-body">



						<form:form cssClass="form-horizontal" name="addUserForm"
							role="form" method="POST" modelAttribute="user">
							<form:errors path="*" cssClass="error" element="div" />


							<h3 class="block">Editer utilisateur</h3>

							<div class="well">

								<div class="form-group" id="walou">
									<label class="col-sm-3 control-label"></label>
									<div class="col-sm-4"></div>
								</div>


								<div class="form-group" id="groupe">
									<label class="col-sm-3 control-label">Groupe</label>
									<div class="col-sm-4">
										<form:select path="groupe" cssClass="form-control">
											<form:options items="${groupeList}" />
										</form:select>
									</div>
								</div>


								<div class="form-group">
									<label class="col-sm-3 control-label">Matricule</label>
									<div class="col-sm-4">
										<form:input path="matricule" class="form-control"
											placeholder="Matricule" required="true" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-3 control-label">Prenom</label>
									<div class="col-sm-4">
										<form:input path="prenom" class="form-control"
											placeholder="Prenom" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-3 control-label">Nom</label>
									<div class="col-sm-4">
										<form:input path="nom" class="form-control" placeholder="Nom" />
									</div>
								</div>


								<div class="form-group">
									<label class="col-sm-3 control-label">Email</label>
									<div class="col-sm-4">
										<form:input type="email" path="email" class="form-control"
											placeholder="Email" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-3 control-label">GSM</label>
									<div class="col-sm-4">
										<form:input type="tel" path="gsm" class="form-control"
											placeholder="GSM" />
									</div>
								</div>

							</div>
							<div class="form-group">
								<div class="col-sm-offset-4 col-sm-10">

									<form:button type="submit" class="btn btn-success btn-primary"> Editer</form:button>
									<a href="<c:url value="/utilisateurs" />"><button
											class="btn btn-success btn-default">Annuler</button></a> <a
										href="<c:url value="/utilisateurs" />"><button
											class="btn btn-default">Reset</button></a>

								</div>
							</div>

						</form:form>




					</div>

					<!-- TITLE BOX END -->
				</div>